﻿#pragma once

enum class GratingState {
	grating_state_normal = 0,	// 正常状态
	grating_state_triger = 1,	// 被触发
	grating_state_fault = 2,	// 故障状态
};

enum class GratingEnableState {
	grating_state_enable = 0,	// 使能状态，禁止进入
	grating_state_disable = 1,	// 关闭状态，禁止进入
};


struct GratingDiCfg {
	int tiger;
	int fault;
};

struct GratingInfo {
	QString id;
	GratingDiCfg cfg;
	GratingState state;
	GratingEnableState abel;
};


enum class GratingCmdType {
	get_grating_trig_state = 0,
	get_grating_able_state = 1,
	set_grating_able_state = 2,
	get_grating_id_list,

};
